/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package javabeans;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 *
 * @author liweijiao
 */
public class Plan {

    private int planid;
    private String planname;
    private List<Event> events;
    private String plandescript;
    private Member member;
    private long planindex;

    public long getPlanindex() {
        return planindex;
    }

    public void setPlanindex(long planindex) {
        this.planindex = planindex;
    }

    public Plan() {
        events=new ArrayList<Event>();
    }

    public Plan(String pname) {
        this.planname = pname;
    }
    public void addEvent(Event event)
    {
        this.events.add(event);
    }

    public Member getMember() {
        return member;
    }

    public void setMember(Member member) {
        this.member = member;
    }

  
  



    public String getPlandescript() {
        return plandescript;
    }

    public void setPlandescript(String plandescript) {
        this.plandescript = plandescript;
    }

    public List<Event> getEvents() {
        return events;
    }

    public void setEvents(List<Event> events) {
        this.events = events;
    }

    public int getPlanid() {
        return planid;
    }

    public void setPlanid(int planid) {
        this.planid = planid;
    }

   

    public String getPlanname() {
        return planname;
    }

    public void setPlanname(String planname) {
        this.planname = planname;
    }
}
